import request from '@/utils/request'

// 查询操作题列表
export function listQuestionCz(query) {
	return request({
		url: '/admin/questionCz/list',
		method: 'get',
		params: query
	})
}

// 查询操作题
export function selectQuestionCz(id) {
	return request({
		url: '/admin/questionCz/' + id,
		method: 'get'
	})
}

// 插入操作题
export function insertQuestionCz(data) {
	return request({
		url: '/admin/questionCz',
		method: 'post',
		data: data
	})
}

// 修改操作题
export function updateQuestionCz(data) {
	return request({
		url: '/admin/questionCz',
		method: 'put',
		data: data
	})
}
// 修改状态
export function changeStatus(data) {
	return request({
		url: '/admin/questionCz/statusReverse',
		method: 'post',
		data: data
	})
}
// 删除操作题
export function deleteQuestionCz(id) {
	return request({
		url: '/admin/questionCz/' + id,
		method: 'delete'
	})
}
